﻿Imports MvcApplication_VbViewEngine.Views.Shared

Namespace Views.Account
    Public Class ChangePassword
        Inherits SiteMaster(Of Object)

        Public Overrides Function RenderContent() As XElement
            Return _
<div>
    <h2>Change Password</h2>
    <p>
        Use the form below to change your password. 
    </p>
    <p>
        New passwords are required to be a minimum of <%= ViewData("PasswordLength") %> characters in length.
    </p>
    <%= Xhtml.ValidationSummary() %>

    <%= Xhtml.Form( _
        <div>
            <table>
                <tr>
                    <td>Current password:</td>
                    <td>
                        <%= Xhtml.Password("currentPassword") %>
                        <%= Xhtml.ValidationMessage("currentPassword") %>
                    </td>
                </tr>
                <tr>
                    <td>New password:</td>
                    <td>
                        <%= Xhtml.Password("newPassword") %>
                        <%= Xhtml.ValidationMessage("newPassword") %>
                    </td>
                </tr>
                <tr>
                    <td>Confirm new password:</td>
                    <td>
                        <%= Xhtml.Password("confirmPassword") %>
                        <%= Xhtml.ValidationMessage("confirmPassword") %>
                    </td>
                </tr>
                <tr>
                    <td></td>
                    <td><input type="submit" value="Change Password"/></td>
                </tr>
            </table>
        </div> _
        ) %>
</div>
        End Function
    End Class
End Namespace
